<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            margin: 100px;
        }
        @keyframes ball { 
            to { 
                transform: translateX(200px) scale(2); 
            } 
        } 
        @keyframes slideInLeft { 
            from { 
                transform: translate3d(-100%, 0, 0); 
                visibility: visible; 
            } 
            to { 
                transform: translate3d(0, 0, 0); 
            } 
        }
        .ball { 
            width: 200px;
            height: 200px;
            border-radius: 50%;
            /* animation: ball 2s linear both  */
            animation: slideInLeft 2s linear both
        }
        @keyframes dot { 
            0% { transform: translateY(0) scale(1); } 
            25% { transform: translateY(100px) scale(1.1); } 
            50% { transform: translateY(0) scale(0.9); } 
            75% { transform: translateY(-100px) scale(1.1); } 
            100% { transform: translateY(0) scale(1); } 
        } 
        .dot { 
            display: inline-block;
            margin-right: 20px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            animation: dot 1s linear both; 
        } 
        .dot:nth-child(1) { 
            background-color: red;
            animation-duration: 1s; 
            animation-delay: 0s; 
        } 
        .dot:nth-child(2) { 
            background-color: blue;
            animation-duration: 1s; 
            animation-delay: 1s; 
        } 
        .dot:nth-child(3) { 
            background-color: green;
            animation-duration: 1s; 
            animation-delay: 2s; 
        }

    </style>
</head>
<body>
    <!-- <div class="container">
        <img class="ball" src="./ball.jpeg"/>
        <div><button id="play">PLAY</button></div>
    </div> -->
    <div class="container"> 
        <div class="dot"></div> 
        <div class="dot"></div> 
        <div class="dot"></div> 
    </div>
    <script>
        // const ballKeyframes = [{ 
        //     transform: 'translateX(0) scale(1)' 
        // }, { 
        //     transform: 'translateX(200px) scale(2)' 
        // }];
        // const ballOptions = { 
        //     duration: 2000, 
        //     easing: 'linear', 
        //     fill: 'both' 
        // };
        // const ball = document.querySelector(".ball"); 
        // const handlePlay = document.getElementById("play"); 
        // const ballAnimation = ball.animate(ballKeyframes, ballOptions);
        // ballAnimation.pause(); 
        // handlePlay.addEventListener("click", () => { ballAnimation.play(); });
    </script>
</body>
</html>